package tags;

import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentELTag;


public class GoogleMapTag extends UIComponentELTag
{
    private String width = null;
    private String height = null;

    public String getComponentType()
    {
        return "uicomponents.UIGoogleMap";
    }

    public String getRendererType()
    {
        return null;
    }

    @Override
    protected void setProperties(UIComponent component)
    {
        super.setProperties(component);

        if (width != null)
            component.getAttributes().put("width", width);
        if (height != null)
            component.getAttributes().put("height", height);
    }

    @Override
    public void release()
    {
        super.release();
        width = null;
        height = null;
    }

    public void setWidth(String width)
    {
        this.width = width;
    }

    public void setHeight(String height)
    {
        this.height = height;
    }
}
